.element-card {
  cursor: default;
  text-align: center;
  user-select: none;
  .card-avatar {
    position: absolute;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover; /* 保持图片比例，同时裁剪超出部分 */
    object-position: center; /* 确保图片居中 */
  }

  .card-name {
    position: absolute;
    top: 120px;
    left: 0px;
    right: 0;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffff92;
    text-shadow: .1rem 0rem .2rem #ff5c26, -0.1rem 0rem .2rem #ff5c26, 0rem .1rem .2rem #ff5c26, 0rem -0.1rem .2rem #ff5c26;
  }
}

.lucky-element-card {
  cursor: default;
  text-align: center;
  &::before {
    background-color: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
    border: 1px solid linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  }

  .card-avatar {
    position: absolute;
    top: 60px;
    right: 50%;
    transform: translateX(50%);
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover; /* 保持图片比例，同时裁剪超出部分 */
    object-position: center; /* 确保图片居中 */
  }

  .card-name {
    position: absolute;
    top: 230px;
    left: 0px;
    right: 0;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffff92;
    text-shadow: .1rem 0rem .2rem #ff5c26, -0.1rem 0rem .2rem #ff5c26, 0rem .1rem .2rem #ff5c26, 0rem -0.1rem .2rem #ff5c26;
  }
}
